Feature setup code generation
====
It's done! See feature.h, event.h and the various stuff in codegen.c.
